﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Scoreboard.Basement.Controls;
using Scoreboard.Model;

namespace Scoreboard.CommonViews
{
	public partial class SubTournament : UserControl
	{
		public SubTournament()
		{
			InitializeComponent();
		}

		private void Group_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
		{
			var target = sender as FrameworkElement;
			var gamesList = new GamesList
			                	{
			                		DataContext = target.DataContext
			                	};

			var window = new InfoWindow {CustomContent = gamesList, Title = "Игры", Height = 438, Width = 572};

			window.Show();
		}
	}
}
